package com.atguigu.yygh.repository;

import com.atguigu.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @author zr
 * @date 2021/12/12 21:31
 */
@Repository
public interface DepartmentRepository extends MongoRepository<Department, String> {
    /**
     * 取出数据
     * @param hoscode
     * @param depcode
     * @return
     */
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);
}
